<?php

class Application_Model_Note extends Application_Model_ModelAbstract
{
    protected $_note_id;
    protected $_note_title;
    protected $_note_type;
    protected $_note_date;

    const TYPE_FOOTBALL = 1;
    const TYPE_WEB      = 2;
    const TYPE_MONEY    = 3;
    const TYPE_HOME     = 4;

    public static $types = array(
        self::TYPE_FOOTBALL => "Футбол",
        self::TYPE_WEB      => "Web",
        self::TYPE_MONEY    => "Деньги",
        self::TYPE_HOME     => "Быт
        ",
    );




    public function setNoteId($note_id)
    {
        $this->_note_id = $note_id;
    }

    public function getNoteId()
    {
        return $this->_note_id;
    }

    public function setNoteTitle($note_title)
    {
        $this->_note_title = $note_title;
    }

    public function getNoteTitle()
    {
        return $this->_note_title;
    }

    public function setNoteType($note_type)
    {
        $this->_note_type = $note_type;
    }

    public function getNoteType()
    {
        return $this->_note_type;
    }

    public function setNoteDate($note_date)
    {
        $this->_note_date = $note_date;
    }

    public function getNoteDate()
    {
        return $this->_note_date;
    }

    public function getLabel()
    {
        switch ($this->getNoteType()) {
            case self::TYPE_FOOTBALL:
                return 'label-info';
            case self::TYPE_HOME:
                return 'label-warning';
            case self::TYPE_WEB:
                return 'label-success';
            case self::TYPE_MONEY:
                return 'label-important';
            default:
                return '';
        }
    }
}